/*
* @Author: Srain
* @Date:   2018-07-20 18:26:52
* @Last Modified by:   Srain 
* @Last Modified time: 2018-09-30 14:51:00
*/

'use strict';

var _mm = require('util/mm.js');

var _new = {
    // 获取新闻列表
    getNewList : function(listParam, resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/new/wz/getNewList'),
            data    : listParam,
            success : resolve,
            error   : reject
        });
    },
    // 获取新闻详细信息
    getNewDetail : function(id, resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/new/wz/findById'),
            data    : {
                id : id
            },
            success : resolve,
            error   : reject
        });
    }
}
module.exports = _new;